package com.example.assignment5.dao;

import com.example.assignment5.entity.Supplier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Repository;

@Repository
public interface SupplierRepository extends JpaRepository<Supplier,Long>,JpaSpecificationExecutor<Supplier>{

    Page<Supplier> findByNameContaining(@Nullable String name,Pageable pageable);

}
